package com.lingyue.commons.utils;

import cn.hutool.core.util.IdUtil;

/**
 * 生成唯一码
 *
 * @author deep.wu
 * @version 1.0 on 2020/1/7 14:54.
 */
public class UniqueCodeUtil {

    /**
     * uuid 32 length
     */
    public static String uuid() {
        return IdUtil.fastSimpleUUID();
    }

    /**
     * string id 24 length
     */
    public static String strId() {
        return IdUtil.objectId();
    }

}
